package version.test.service;


import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
import version.test.dto.entity.WeaponEntity;

import java.util.List;


/**
 * @description:
 * @author: hzw
 * @time: 2023/11/10 17:43
 */
@Service
public interface ESWeaponService extends ElasticsearchRepository<WeaponEntity, Long> {

    List<WeaponEntity> findByName(String name);

    List<WeaponEntity> findByCodeLikeOrNameLike(String code, String name);

    Page<WeaponEntity> findByName(String name, Pageable pageable);
}
